package com.daikin.ktmustwrite.data.model.bean

import me.hgj.jetpackmvvm.network.BaseResponse

class ApiResponse<T>(var errorCode: Int, var errorMsg: String, var data: T) : BaseResponse<T>() {
    override fun getResponseCode(): Int {
        return errorCode
    }

    override fun getResponseData(): T = data

    override fun getResponseMsg(): String = errorMsg

    override fun isSucces(): Boolean = errorCode == 0
}